package com.gxuwz.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.business.dao.impl.StandFeeDAO;
import com.gxuwz.business.entity.StandFee;
import com.gxuwz.business.service.IStandFeeService;
import com.gxuwz.util.Pager;

@Service("standFeeService")
public class StandFeeServiceImpl implements IStandFeeService {

	@Autowired
    private StandFeeDAO	standFeeDAO;
	@Override
	public boolean add(StandFee standFee) {
		return standFeeDAO.add(standFee);
	}

	/**
	 * 查询挂号编号对应全部费用
	 */
	public List<Double> getFeeByRegId(String regId){
		return standFeeDAO.getFeeByRegId(regId);
	}
	
	@Override
	public void update(StandFee standFee) {
		standFeeDAO.update(standFee);
	}

	@Override
	public void delete(StandFee standFee) {
		standFeeDAO.delete(standFee);
	}

	@Override
	public StandFee findById(StandFee standFee) {
		return standFeeDAO.findById(standFee);
	}

	@Override
	public List<StandFee> getRightAll() {
		return null;
	}

	@Override
	public Pager<StandFee> getByPager(StandFee standFee, Integer page, Integer limit) {
		return standFeeDAO.getByPager(standFee, page, limit);
	}

	@Override
	public boolean checkStandName(StandFee standFee) {
		return standFeeDAO.checkStandName(standFee);
	}

}
